package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.ForumPosts;

/**
 * forumMapper接口
 * 
 * @author zrj
 * @date 2025-07-11
 */
public interface ForumPostsMapper 
{
    /**
     * 查询forum
     * 
     * @param postId forum主键
     * @return forum
     */
    public ForumPosts selectForumPostsBypostId(Long postId);

    /**
     * 查询forum列表
     * 
     * @param forumPosts forum
     * @return forum集合
     */
    public List<ForumPosts> selectForumPostsList(ForumPosts forumPosts);

    /**
     * 新增forum
     * 
     * @param forumPosts forum
     * @return 结果
     */
    public int insertForumPosts(ForumPosts forumPosts);

    /**
     * 修改forum
     * 
     * @param forumPosts forum
     * @return 结果
     */
    public int updateForumPosts(ForumPosts forumPosts);

    /**
     * 删除forum
     * 
     * @param postId forum主键
     * @return 结果
     */
    public int deleteForumPostsBypostId(Long postId);

    /**
     * 批量删除forum
     * 
     * @param postIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteForumPostsBypostIds(Long[] postIds);
}
